package es

import (
	"github.com/elastic/go-elasticsearch/v7"
)

var (
	Es  *elasticsearch.Client
	err error
)

func Init() {
	cfg := elasticsearch.Config{
		Addresses: []string{
			"http://14.103.140.53:9200",
		},
		// ...
	}
	Es, err = elasticsearch.NewClient(cfg)
}
